package com.basic.business.labelMapping.mapper;


import com.basic.business.labelMapping.domain.TLabelMapping;
import com.basic.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品标签映射管理Mapper接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface TLabelMappingMapper extends BaseMapper<TLabelMapping> {

    /**
     * 根据标签获取负责人信息
     * @param label
     * @return
     */
    public TLabelMapping getUserByLabel(String label);

    /**
     * 判断标签是否存在
     * @param mainLabel
     * @param subLabel
     * @return
     */
    int isExist(@Param("mainLabel") String mainLabel, @Param("subLabel") String subLabel);
}
